package com.example.service;

import com.example.domain.dto.DepartmentDTO;
import com.example.domain.po.Department;
import com.example.domain.vo.CourseVo;
import com.example.domain.vo.DepartmentVo;
import com.example.util.PageBean;

import java.io.IOException;
import java.util.List;

public interface DepartmentService {
    List<Department> list();

    Department findById(Integer id);

    List<Department> findByHospitalId(Integer id);

    PageBean<DepartmentVo> page(Integer pageNum, Integer pageSize, Integer hospitalId, String name);

    String save(DepartmentDTO departmentDTO) throws IOException;

    PageBean<Department> singleList(Integer pageNum, Integer pageSize, String name);

    void del(Integer id);
}
